package app.vendorportal.api;

import app.vendorportal.api.data.request.SSOAuthenticateRequest;
import app.vendorportal.api.data.request.SSOAuthorizeRequest;
import app.vendorportal.api.data.response.SSOAuthenticateResponse;
import app.vendorportal.api.data.response.SSOAuthorizeResponse;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.validation.Valid;

/**
 * @author Raymond
 * @version createTime：Apr 25, 2013 4:18:14 PM
 */
@Deprecated
public interface SSOAuthorizeAPIService {

    @RequestMapping(value = "/authorize", method = RequestMethod.POST)
    // @Protected(system = "drop-ship-service", operation = "sso-authorize")
    // @Track(warningThresholdInMs = 5000)
    @ResponseBody
    SSOAuthorizeResponse authorize(@Valid @RequestBody SSOAuthorizeRequest request);

    @RequestMapping(value = "/authenticate", method = RequestMethod.POST)
    // @Protected(system = "drop-ship-service", operation = "sso-authenticate")
    // @Track(warningThresholdInMs = 5000)
    @ResponseBody
    SSOAuthenticateResponse authenticate(@Valid @RequestBody SSOAuthenticateRequest request);

}
